interface ISelectOption {
  title: string
  value: any
}

type FromType = 'input' | 'password' | 'select' | 'datepicker'

export interface IFormType {
  type: FromType
  label: string
  rules?: any[]
  placeholder?: string
  // 针对select标签
  options?: ISelectOption[]
  // 针对其他属性
  otherOptions?: any
  field: string
  // 针对新增、编辑表单属性的是否隐藏
  isHidden?: boolean
}

export interface IForm {
  formItems?: IFormType[]
  labelWidth?: string
  itemLayout?: any
  colLayout?: any
  title?: string
}
